video: fbdev: aty: do not leak uninitialized padding in clk to userspace
authorVladis Dronov <vdronov@redhat.com>
Mon, 4 Sep 2017 14:00:50 +0000 (16:00 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 15 Oct 2017 06:57:36 +0000 (07:57 +0100)
commit4dc25af25770cacd74d17e0b32bef03bc70726b4
treea14c6d29fa2e768050e869c10de4dfaf4e453ad1
parent6eac39e43343f56bc714532ee62995411985235e
video: fbdev: aty: do not leak uninitialized padding in clk to userspace

'clk' is copied to a userland with padding byte(s) after 'vclk_post_div'
field unitialized, leaking data from the stack. Fix this ensuring all of
'clk' is initialized to zero.

References: https://github.com/torvalds/linux/pull/441
Reported-by: sohu0106 <sohu0106@126.com>
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name video-fbdev-aty-do-not-leak-uninitialized-padding-in.patch
drivers/video/fbdev/aty/atyfb_base.c